Skip to content

Add opt-in Pan-STARRS host fallback - #986

Merged
antoine-le-calloch merged 3 commits into
mainfrom
mcoughlin/ps1-host-fallback
Nov 27, 2026
Merged

antoine-le-calloch merged 3 commits into
mainfrom
mcoughlin/ps1-host-fallback

Conversation

@mcoughlin

@mcoughlin mcoughlin commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add an opt-in Pan-STARRS DR2 host fallback when the NED-LVS and Legacy path leaves best_host empty. A separate staged panstarrs-hosts catalog supplies DR2 stack Kron radii and PS1-STRM classification and photo-z joined by objID.
  • Default to a 45″ cone, STRM class GALAXY with score ≥ 0.70, r-band extendedness ≥ 0σ, a positive r-band Kron radius, and a Pan-STARRS-only maximum d_dlr of 3.0.
  • Reuse the existing DLR ranking and posterior calculation. Use the r-band Kron radius as a circular size proxy. An adopted PS1-STRM redshift is marked z_type: photometric in the stored host and object API, and labeled Photometric redshift in the host card. A qualifying DESI spectrum retains precedence and is labeled Spectroscopic redshift.

The fallback is disabled when host_galaxy.ps1_fallback is absent. This PR leaves deployment configs and the ordinary PS1 alert crossmatch untouched. A joined shape catalog must be prepared and ingested in a test deployment before enabling the fallback there. No production catalog ingestion or backfill was run.

Offline replay

Swept 400 configurations on 722 ZTF Bright Transient Survey alerts with published host positions. The training and holdout split was grouped by published host name. Agreement means a selected centroid within 2″ of the published host. For the broad benchmark, the fallback was forced on alerts with existing BOOM hosts. Results for records with an empty stored best_host are shown separately.

Cohort Settings Agree Disagree No match
Held-out, 385 alerts Prototype 322 41 22
Held-out, 385 alerts Tuned 339 34 12
Held-out, 385 alerts Tuned, max_dlr: 2.0 335 32 18
Empty BOOM host, all 37 alerts Prototype 27 4 6
Empty BOOM host, all 37 alerts Tuned 30 2 5
Empty BOOM host, held-out 16 alerts Prototype 11 2 3
Empty BOOM host, held-out 16 alerts Tuned 12 1 3

With the tuned settings, ZTF26aciomda selected PS1 191000742646808255, 15.42″ from the transient, with d_dlr = 1.58 and photo-z 0.0381 ± 0.0086. On the 52 benchmark alerts with published host offsets of at least 15″, 24 agreed, 24 disagreed, and four returned no match. Most of those were forced fallbacks. The known-host sample does not measure spurious matches for genuinely hostless transients. The posterior remains uncalibrated.

Validation

  • 96 Rust host tests passed, including a disposable MongoDB replay of ZTF26aciomda, disabled mode, primary host precedence, and a primary candidate rejected by DLR. Seven staged-catalog and JSONL tests also passed.
  • All 64 boompy tests and 106 frontend tests passed. The frontend build and lint passed.

@mcoughlin
mcoughlin marked this pull request as ready for review November 26, 2026 15:47

@antoine-le-calloch antoine-le-calloch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@antoine-le-calloch antoine-le-calloch added the skip-throughput Skip the throughput test on this pull request label Nov 26, 2026
@antoine-le-calloch
antoine-le-calloch merged commit ac48e98 into main Nov 27, 2026
12 checks passed
@antoine-le-calloch
antoine-le-calloch deleted the mcoughlin/ps1-host-fallback branch November 27, 2026 05:22
@github-project-automation github-project-automation Bot moved this to Done in BOOM Dev Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-throughput Skip the throughput test on this pull request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants